@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    /* x.ai 启发的配色方案 */
    --background: 0 0% 6%;
    --foreground: 0 0% 98%;
    
    --card: 0 0% 8%;
    --card-foreground: 0 0% 98%;
    
    --popover: 0 0% 8%;
    --popover-foreground: 0 0% 98%;
    
    --primary: 210 100% 60%;
    --primary-foreground: 0 0% 100%;
    
    --secondary: 0 0% 12%;
    --secondary-foreground: 0 0% 90%;
    
    --muted: 0 0% 12%;
    --muted-foreground: 0 0% 60%;
    
    --accent: 0 0% 14%;
    --accent-foreground: 0 0% 98%;
    
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 98%;
    
    --border: 0 0% 14%;
    --input: 0 0% 14%;
    --ring: 210 100% 60%;
    
    --radius: 8px;
    
    /* x.ai 特色渐变 */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    --gradient-secondary: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    
    /* 图表颜色 */
    --chart-1: 210 100% 60%;
    --chart-2: 196 75% 55%;
    --chart-3: 269 75% 65%;
    --chart-4: 43 74% 66%;
    --chart-5: 27 87% 67%;
    
    /* 侧边栏 */
    --sidebar-background: 0 0% 8%;
    --sidebar-foreground: 0 0% 90%;
    --sidebar-primary: 210 100% 60%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 0 0% 12%;
    --sidebar-accent-foreground: 0 0% 90%;
    --sidebar-border: 0 0% 14%;
    --sidebar-ring: 210 100% 60%;
  }
  
  .light {
    --background: 0 0% 100%;
    --foreground: 0 0% 3.9%;
    
    --card: 0 0% 100%;
    --card-foreground: 0 0% 3.9%;
    
    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 3.9%;
    
    --primary: 210 100% 50%;
    --primary-foreground: 0 0% 98%;
    
    --secondary: 0 0% 96.1%;
    --secondary-foreground: 0 0% 9%;
    
    --muted: 0 0% 96.1%;
    --muted-foreground: 0 0% 45.1%;
    
    --accent: 0 0% 96.1%;
    --accent-foreground: 0 0% 9%;
    
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    
    --border: 0 0% 89.8%;
    --input: 0 0% 89.8%;
    --ring: 210 100% 50%;
    
    --chart-1: 210 100% 50%;
    --chart-2: 196 75% 45%;
    --chart-3: 269 75% 55%;
    --chart-4: 43 74% 56%;
    --chart-5: 27 87% 57%;
  }
}

@layer base {
  * {
    @apply border-border;
  }
  
  body {
    @apply bg-background text-foreground;
    font-feature-settings: "rlig" 1, "calt" 1;
  }
  
  /* x.ai 风格的滚动条 */
  ::-webkit-scrollbar {
    width: 6px;
  }
  
  ::-webkit-scrollbar-track {
    @apply bg-background;
  }
  
  ::-webkit-scrollbar-thumb {
    @apply bg-border rounded-full;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    @apply bg-muted-foreground/50;
  }
}

@layer utilities {
  .gradient-text {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .glass-effect {
    @apply backdrop-blur-md bg-background/80 border border-border/50;
  }
  
  .glow-effect {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
  }
  
  .fade-in {
    animation: fadeIn 0.3s ease-in-out;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
} 